package com.video.chat.domain.dto;

import lombok.Data;

@Data
public class QueryPageDto {
    private String keywords;

    private Integer page;

    private Integer pageSize;
    private String type;

    public void validateParams() {
        if(page == null) {
            this.page = 1;
        }
        if(pageSize == null) {
            this.pageSize = 10;
        }
    }
}
